#ifndef __OSGWIDGET_H__
#define __OSGWIDGET_H__


/*!
*	@brief	the main widget to show 3D scene.
*	@author	pezy
*	@date	2016-08-05
*	@see
*/

#include "QtOSGeventadapterwidget.h"
#include <osgViewer/Viewer>

class QtOSGWidget : public QtOSGEventAdapterWidget, public osgViewer::Viewer
{
	Q_OBJECT

public:
	QtOSGWidget(QWidget *parent);
	~QtOSGWidget();

protected:
	void initializeGL() override;
	void paintGL() override;
	bool event(QEvent* event) override;
};


#endif __OSGWIDGET_H__
